<script>
export default {
  name: 'Redirect',
  created() {
    // 获取到重定向页面传过来的path参数和query值
    const { params, query } = this.$route
    const { path } = params
    this.$router.push({ path: '/' + path, query })
  }
}
</script>
